package com.ylzinfo.channelclient.config;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 *
 * http相关配置
 * @author zengjw
 */
@Data
@Component
@ConfigurationProperties(prefix = "http")
public class HttpConfig {

	/**
	 * 读取时间
	 */
	private Long   readTimeout;
	/**
	 * 写入时间
	 */
	private Long   writeTimeout;
	/**
	 * 连接时间
	 */
	private Long   connectTimeout;
	/**
	 * 最大请求
	 */
	private Integer   maxRequests;
	/**
	 * 每个ip最大请求
	 */
	private Integer   maxRequestsPerHost;
	/**
	 * 最大连接数
	 */
	private Integer   maxIdleConnections;
	/**
	 * 最大保持连接时间
	 */
	private Integer   keepAliveDuration;
}
